import {
  MkBase
} from 'element-ui'
import {
  mapState
} from 'vuex'

export default {
  mixins: [MkBase],
  data () {
    return {
      text_container: '登录、注册等通用模版',
      codeIndex: ''
    }
  },
  computed: {
    ...mapState(['index'])
  },
  methods: {
    change_code (event) {
      event.target.src = `${this.basePath}/validateCode.jpegx?index=${this.codeIndex}&timestamp=${+new Date()}`
    }
  }
}
